#include <QCoreApplication>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    double q=10,P,S;
        int K=1;
        cin>>P;
        if ((P>0) && (P<50))
        {
            while (S<200)
            {
                q=q*(1+P/100);
                S=S+q;
                K++;
            }
        cout<<S<<'\n'<<K;
        }
        else cout<<"oshibka";
    return a.exec();
}
